home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / geterror.zip / GETERROR.DOC < prev   
Text File  |  1987-08-01  |  833b  |  20 lines

  1. GETERROR.COM by Brett Warthen
  2.  
  3. A simple memory-resident routine, that once installed allows you to check
  4. the error code (i.e., errorlevel) issued by the last process.
  5.  
  6. The first time GETERROR is executed, it installs a small portion of itself
  7. in memory and takes over interrupts 21h and 16h.
  8.  
  9. Interrupt 16h is used only for a signature request, so that we know whether
  10. or not the resident code is already there.
  11.  
  12. Interrupt 21h is monitored for calls to the terminate program functions
  13. (4Ch and 31h).  When a call to one of these functions is encountered,
  14. we save the error code from AL in our code.
  15.  
  16. Subsequent executions of GETERROR will display the error code issued
  17. by the last program to terminate.  For consistency, calls to Function 0 are
  18. translated into a return code of 0, as will calls to Interrupt 20h
  19.  
  20.